
SECRET_KEY = "tiancai"


'''HOSTNAME = '127.0.0.1'
PORT     = '3306'
DATABASE = 'bv'
USERNAME = 'root'
PASSWORD = 'songke..'
DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8mb4'.format(USERNAME,PASSWORD,HOSTNAME,PORT,DATABASE)
SQLALCHEMY_DATABASE_URI = DB_URI
'''
import os

# 获取项目根目录绝对路径
BASE_DIR = os.path.abspath(os.path.dirname(__file__))

SQLALCHEMY_DATABASE_URI = f'sqlite:///{os.path.join(BASE_DIR, "sql_file", "bv.db")}'